#ifndef PF_BASE
#define PF_BASE

#include "StreamingException.h"
#include <string>

#define THROW throw StreamingException(__FILE__, __LINE__) \

#define CHECK(condition) if (!(condition)) \
	THROW << "CHECK FAILED: '" << #condition << "'"

#ifdef _DEBUG
#	define ASSERT(condition) if (!(condition)) \
		THROW << "ASSERT FAILED: '" << #condition << "'"
#else
#	define ASSERT(condition) {}
#endif // DEBUG


//----------------------------------------------------------------------

namespace obrsp {

namespace plugin {


std::string getErrorMessage();


}  // namespace plugin

}  // namespace obrsp
#endif // BASE_H


